<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class GioHang_model extends CI_Model {
		
    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
        $this->load->database();
    }
	function LaySanPham($MaSP)
	{
		$this->db->select("*");
		$this->db->where("MaSP",$MaSP);
        $query=$this->db->get("sanpham");
       	return $query->row_array();
	}
	
	
	
	
	
}